package com.ybkj.daijia.server.scheduler;

import com.ybkj.daijia.server.service.DriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class ClearDayOrderNums {

    @Autowired
    private DriverService driverService;

    @Transactional(rollbackFor = Exception.class)
    public void executeDay() {

        driverService.clearDayOrderNums();

    }
}